<?xml version="1.0"?>
<jsp:root 	xmlns:jsp="http://java.sun.com/JSP/Page"
 			xmlns:c="http://java.sun.com/jsp/jstl/core"
 			xmlns="http://www.w3.org/1999/xhtml"
 			version="2.1">
 
 <jsp:directive.page isELIgnored="false" />
 				
<c:forEach items="${cookie}" var="cookies">
	<c:if test="${cookies.value.name == 'login' }">
		<c:set var="logeado" value="true" scope="session" />
		<c:url var="destino" value="login">
			<c:param name="logear" value="${cookies.value.value}"></c:param>
		</c:url>
	</c:if>  
</c:forEach> 
<c:if test="${logeado == null or logeado != true }">
	<c:url var="destino" value="login.jsp" />
</c:if>

<c:redirect url="${destino}"></c:redirect>
</jsp:root>